from django.core.management import call_command
from travel_game.models import *

call_command('syncdb')

oxItem = AbstractItem(name='Two Oxen',description='A yoke of oxen',weight=0,cost=40)
oxItem.save()
foodItem = AbstractItem(name='Food',description='1 pounds of food',weight=1,cost=.2)
foodItem.save()
clothingItem = AbstractItem(name='Clothing',description='1 set of clothing (for 1 person)',weight=2,cost=10)
clothingItem.save()
ammoItem = AbstractItem(name='Ammo',description='A box of ammo (20 rounds)',weight=3,cost=2)
ammoItem.save()
wheelItem = AbstractItem(name='Wagon wheel',description='Replacement wagon wheel',weight=75,cost=10)
wheelItem.save()
tongueItem = AbstractItem(name='Wagon tongue',description='Tongue to attach oxen to',weight=100,cost=10)
tongueItem.save()
axleItem = AbstractItem(name='Wagon axle',description='A replacement wagon axle',weight=125,cost=10)
axleItem.save()

prof = Profession(name="Banker",description="Starts with more money",startingMoney=1600)
prof.save()
prof = Profession(name="Farmer",description="Less starting money, oxen have more health",startingMoney=400)
prof.save()
prof = Profession(name="Carpenter",description="Can repair wagons easier, average starting money",startingMoney=800)
prof.save()


indLandmark = Landmark(distanceFromStart=0,name='Independence')
indLandmark.save()

newAbStore = AbstractStore(location=indLandmark,name='Independence Store')
newAbStore.save()

oxItem1 = Item(itemType=oxItem,holder=newAbStore,quantity=100)
oxItem1.save()
foodItem1 = Item(itemType=foodItem,holder=newAbStore,quantity=5000)
foodItem1.save()
clothingItem1 = Item(itemType=clothingItem,holder=newAbStore,quantity=1000)
clothingItem1.save()
ammoItem1 = Item(itemType=ammoItem,holder=newAbStore,quantity=5000)
ammoItem1.save()
wheelItem1 = Item(itemType=wheelItem,holder=newAbStore,quantity=100)
wheelItem1.save()
tongueItem1 = Item(itemType=tongueItem,holder=newAbStore,quantity=100)
tongueItem1.save()
axleItem1 = Item(itemType=axleItem,holder=newAbStore,quantity=100)
axleItem1.save()